<?php
namespace app\admin\validate;

use think\Validate;
// session_start();
class Admin2 extends Validate
{
    protected $rule = [
        //表单名,表单里面的字段名
        'account'  =>  'require',
        'role_id'  =>'require',
    ];
    protected $message  =   [
        'account.require'  => '账户必须填写', 
        'role_id.require' => '角色必须选择',
    ];

}